<!DOCTYPE html>


    <head>
        <title>Seleciona Ano Letivo</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/bootstrap-responsive.css" rel="stylesheet">
  	<link href="css/stilo.css" rel="stylesheet">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <![endif]-->
    </head>
    <body>
       <div class="container">
           <?php include "topo.html"; ?>
           <?php include "menu.php"; ?>
           
           <!------------------------------------------Inicio do Conteudo------------------------------------->
		<section>
			<div id="conteudo">
				<div class="row-fluid">
					<div class="span12">
						<div class="titulo">
                                                    <p><b>Seleciona Ano Letivo</b></p>
						</div>
						<div class="bordas">
                                                    <div>
                                                        
                                                        <form class="form-horizontal" method="POST" action="index.php?pg=InserirAnoLetivo">
                                                        <fieldset>

                                                        <!-- Select Basic -->
                                                        <div class="control-group">
                                                          <label class="control-label" for="anoletivo">Selecione o Ano Letivo</label>
                                                          <div class="controls">
                                                            <select id="anoletivo" name="anoletivo" class="input-small">
                                                              <option value="2014">2014</option>
                                                              <option value="2015">2015</option>
                                                              <option value="2016">2016</option>
                                                              <option value="2017">2017</option>
                                                              <option value="2018">2018</option>
                                                              <option value="2019">2019</option>
                                                              <option value="2020">2020</option>
                                                            </select>
                                                          </div>
                                                        </div>

                                                        <!-- Button -->
                                                        <div class="control-group">
                                                          <label class="control-label" for="gerar"></label>
                                                          <div class="controls">
                                                            <button id="gerar" name="gerar" class="btn btn-primary">Gerar</button>
                                                          </div>
                                                        </div>
                                                        </fieldset>
                                                        </form>
                                                        <table class="table">
                                                            <tr>
                                                                <th>Ano Letivos já Gerados</th>
                                                                <th>Cadastrar Dias Letivos</th>
                                                            </tr>
                                                            <?php 
                                                            foreach ($ver as $dados) {
                                                                echo'
                                                                <tr>
                                                                    <td>'.$dados->al_ano.'</td>
                                                                    <td><a href="index.php?pg=GeraAnoLetivo&id='.$dados->id.'" class="btn">Cadastrar</a></td>
                                                                </tr>';
                                                                
                                                            }
                                                            ?>
                                                        </table>
                                                       
                                                    </div>
						</div>
					</div>	
				</div>
			</div> <!-- Fim da linha conteudo -->
		</section><!-- ----------------------------------------fim do Conteudo----------------------------------- -->

           
           <?php include "rodape.html"; ?>
           
           
       </div><!-- fim da div container -->    
        
        
    <!-- Arquivos Javascripts ================================================== -->
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    </body>
</html>